package com.ruoyi.web.wx.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.web.wx.mapper.TrashAutonomousRecordMapper;
import com.ruoyi.web.wx.entity.TrashAutonomousRecord;
import com.ruoyi.web.wx.service.ITrashAutonomousRecordService;
import com.ruoyi.common.core.text.Convert;

/**
 * 自主投递记录 服务层实现
 * 
 * @author ruoyi
 * @date 2019-08-27
 */
@Service
public class TrashAutonomousRecordServiceImpl implements ITrashAutonomousRecordService 
{
	@Autowired
	private TrashAutonomousRecordMapper trashAutonomousRecordMapper;

	/**
     * 查询自主投递记录信息
     * 
     * @param id 自主投递记录ID
     * @return 自主投递记录信息
     */
    @Override
	public TrashAutonomousRecord selectTrashAutonomousRecordById(String id)
	{
	    return trashAutonomousRecordMapper.selectTrashAutonomousRecordById(id);
	}
	
	/**
     * 查询自主投递记录列表
     * 
     * @param trashAutonomousRecord 自主投递记录信息
     * @return 自主投递记录集合
     */
	@Override
	public List<TrashAutonomousRecord> selectTrashAutonomousRecordList(TrashAutonomousRecord trashAutonomousRecord)
	{
	    return trashAutonomousRecordMapper.selectTrashAutonomousRecordList(trashAutonomousRecord);
	}
	
    /**
     * 新增自主投递记录
     * 
     * @param trashAutonomousRecord 自主投递记录信息
     * @return 结果
     */
	@Override
	public int insertTrashAutonomousRecord(TrashAutonomousRecord trashAutonomousRecord)
	{
	    return trashAutonomousRecordMapper.insertTrashAutonomousRecord(trashAutonomousRecord);
	}
	
	/**
     * 修改自主投递记录
     * 
     * @param trashAutonomousRecord 自主投递记录信息
     * @return 结果
     */
	@Override
	public int updateTrashAutonomousRecord(TrashAutonomousRecord trashAutonomousRecord)
	{
	    return trashAutonomousRecordMapper.updateTrashAutonomousRecord(trashAutonomousRecord);
	}

	/**
     * 删除自主投递记录对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteTrashAutonomousRecordByIds(String ids)
	{
		return trashAutonomousRecordMapper.deleteTrashAutonomousRecordByIds(Convert.toStrArray(ids));
	}
	
}
